package Test;

import com.mapper.PersonMapper;
import com.pojo.Person;
import com.utlis.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
@@ -13,4 +14,12 @@ public class PersonTest {
        System.out.println(person);
        session.close();
}
@Test
public void findPersonByIdTest2() {
    SqlSession session = MyBatisUtils.getSession();
    PersonMapper mapper = session.getMapper(PersonMapper.class);
    Person person = mapper.selectPersonById(2);
    System.out.println(person.toString());
    session.close();
}
}